package com.navi.loaddata.core.gpEntity;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * Created by ghost on 2018/3/21.
 */
public class MArrayParamDPK implements Serializable {
    private String paramCollection;
    private String paramName;

    @Column(name = "param_collection")
    @Id
    public String getParamCollection() {
        return paramCollection;
    }

    public void setParamCollection(String paramCollection) {
        this.paramCollection = paramCollection;
    }

    @Column(name = "param_name")
    @Id
    public String getParamName() {
        return paramName;
    }

    public void setParamName(String paramName) {
        this.paramName = paramName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        MArrayParamDPK that = (MArrayParamDPK) o;

        if (paramCollection != null ? !paramCollection.equals(that.paramCollection) : that.paramCollection != null)
            return false;
        if (paramName != null ? !paramName.equals(that.paramName) : that.paramName != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = paramCollection != null ? paramCollection.hashCode() : 0;
        result = 31 * result + (paramName != null ? paramName.hashCode() : 0);
        return result;
    }
}
